package com.gitee.ywj1352.bean;

import org.springframework.beans.factory.support.AbstractBeanDefinition;
import org.springframework.beans.factory.support.BeanDefinitionBuilder;

/**
 * @author wenjie.yang
 * @date 2/25/2020 12:45 PM
 */
public class BeanDemo {
    public static void main(String[] args) {
        BeanDefinitionBuilder beanDefinitionBuilder = BeanDefinitionBuilder.genericBeanDefinition(User.class);
        beanDefinitionBuilder.addPropertyValue("name","杨文杰");

        AbstractBeanDefinition beanDefinition = beanDefinitionBuilder.getBeanDefinition();

        //把 beanDefinition 注册到 BeanFactory 里

    }
}
